RAD Studio VCL Reference
|
Provides access to the data held by the dynamic array.
operator [](index: Integer); operator [](index: Integer);
T& operator [](int index); T operator [](int index) const;
The const version of the System::DynamicArray::[] returns a copy of the data at the specified subscript. The non-const version returns a reference to the data, allowing you to modify the data.
cout << i_array[0]=10;
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|